package vy.org.app.page.lookup.profession;

import org.vy.dal.dao.lookup.VyLookupProfessionDO;

public class MntnProfessionAssembler {

	private static MntnProfessionAssembler assembler = new MntnProfessionAssembler();

	public static MntnProfessionAssembler getAssembler() {
		return assembler;
	}

	public VyLookupProfessionDO getLookupProfessionDO(MntnProfessionForm form) {
		VyLookupProfessionDO dto = new VyLookupProfessionDO();

		if (form.getProfessionId() != null
				&& !"".equals(form.getProfessionId().trim())) {

			dto.setProfessionCode(form.getProfessionId());
		}
		if (form.getProfessionName() != null
				&& !"".equals(form.getProfessionName().trim())) {

			dto.setProfessionName(form.getProfessionName());
		}
		return dto;
	}
}
